﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using FluentNHibernate;
using YunBox2.Contracts.FoundationModels;

namespace YunBox2.DAL.Maps
{
	public class BoardMaterialMap:ClassMap<BoardMaterial>
	{
		public BoardMaterialMap()
		{
			Id(x => x.Id).Column("Id");

			Map(x => x.Name).Column("Name").Unique();
			References(x => x.Type).Column("BoardTypeID");
			Map(x => x.Thickness).Column("Thickness");

			Map(x => x.LastModifiedTime).Column("LastModifiedTime");
			References(x => x.LastModifiedUser).Column("LastModifiedUserID");
            Table("BoardMaterial");
           
		}
	}
}
